package com.itheima.feign.article;

import com.heima.model.articleDto.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient( value = "leadnews-article")
public interface ArticleFeignClient {


    @PostMapping(path = "/api/v1/article/save")
    public ResponseResult<Long> save(@RequestBody ArticleDto dto);
}
